<?php

###################################################################################
# Include der Dateien
###################################################################################
	
require_once dirname(__FILE__).'/lib/framework.php';

require_once dirname(__FILE__).'/lib/core_api.php';
require_once dirname(__FILE__).'/lib/order_api.php';
require_once dirname(__FILE__).'/lib/connect_api.php';

include_once dirname(__FILE__).'/helper/2d_is.php';
include_once dirname(__FILE__).'/helper/mobile_redirect.class.php';
include_once dirname(__FILE__).'/helper/qr_code_manager.class.php';

include_once dirname(__FILE__).'/ext/phpqrcode/qrlib.php';

include_once dirname(__FILE__).'/helper/shopgate_qr_encoder/qr_encoder.php';

try {
	$config = ShopgateConfig::validateAndReturnConfig();
	
	$plugin = $config["plugin"];
	
	if(file_exists(SHOPGATE_BASE_DIR.'/plugins/'.$plugin)
	&& file_exists(SHOPGATE_BASE_DIR.'/plugins/'.$plugin.'/includes.php')) {
		include_once SHOPGATE_BASE_DIR.'/plugins/'.$plugin.'/includes.php';
	}
	
} catch (Exception $e) {
	
}
